from django.db import models
from platformuser.models import User

# Create your models here.
from utils.baseModel import BaseModel


class Myproject(BaseModel):
    projectname = models.CharField(max_length=20, null=False, verbose_name='项目名称', default=None)
    user = models.ForeignKey(to=User, to_field="id", on_delete=models.CASCADE, verbose_name='所属用户id', default=None)
    describe = models.TextField(max_length=30, default=None, null=True, verbose_name='描述')
    testrunner = models.CharField(max_length=20, null=True, verbose_name='测试人员', default=None)

    class Meta(object):
        db_table = 'project'
        ordering = ['-create_time']
